/*
 * QueryShopCategoryResponse.java
 * business
 *
 * Created by ChenTao on 2016/10/26.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.response;

import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.bean.Tag;
import com.yidiandao.business.data.net.BaseResponse;

import java.util.List;

/** 查询店铺分类的Response */
public class QueryShopCategoryResponse extends BaseResponse {

    @SerializedName("data")
    private Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {

        @SerializedName("cat_list")
        private List<ShopCategory> catList;

        public List<ShopCategory> getCatList() {
            return catList;
        }

        public void setCatList(List<ShopCategory> catList) {
            this.catList = catList;
        }
    }

    public static class ShopCategory {

        @SerializedName("id")
        private String id;

        @SerializedName("name")
        private String name;

        @SerializedName("cat_id")
        private List<Tag> tags;

        private boolean isSelected;

        public boolean isSelected() {
            return isSelected;
        }

        public void setSelected(boolean selected) {
            isSelected = selected;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<Tag> getTags() {
            return tags;
        }

        public void setTags(List<Tag> tags) {
            this.tags = tags;
        }
    }
}
